package org.jeecg.modules.bj.controller;

import org.apache.ibatis.annotations.Param;
import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.bj.service.IUpdateBussinessService;
import org.jeecg.modules.bj.service.OpBjDbService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

@RestController
@RequestMapping("/bj/opbjdb")
public class OpBjDbController {

    @Autowired
    IUpdateBussinessService iUpdateBussinessService;

    @PostMapping("/updateyg")
    public Result<?> updateyg(@Param("procInstId") String procInstId) {
        iUpdateBussinessService.updateBussiness(procInstId);
        return Result.ok("操作成功！");
    }
}
